package api

import (
	. "fastdp-ops/pkg/server/api/views"
	"github.com/gin-gonic/gin"
)

func RouteInit(router *gin.Engine) {
	router.GET("/", Index)
	api := router.Group("/api")
	{
		api.GET("/machineEnv", GetMachineEnv)
		api.POST("/exec", Exec)
	}
	router.GET("/install_agent", Install_agent)
	router.Static("/materials", "./materials")
	router.Static("/static", "./static")
}
